﻿using System;
using Unity;

namespace ZYHand.IOC
{
    class Program
    {
        static UnityContainer container = new UnityContainer();
        static void init()
        {
            container.RegisterType<IPlayer, Player>();
            container.RegisterType<IMediaFile, MediaFile>();
        }
        static void Main(string[] args)
        {

            init();
            Operation op1 = container.Resolve<Operation>();
            op1.PlayMain();


            //Operation operation = new Operation();
            //operation.PlayMain();
            Console.WriteLine("Hello World!");
        }
    }
}
